package com.mes.service.jy;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mes.dao.jy.RegularMapper;
import com.mes.entity.jy.Regular;

@Service
@Transactional
public class RegularServiseImpl implements RegularServise{

	@Resource
	private RegularMapper regularMapper;

	@Override
	public int selectRegularByPid(String pid) {
		return regularMapper.selectRegularByPid(pid);
	}

	@Override
	public int createRegular(Regular regular) {
		return regularMapper.createRegular(regular);
	}

	@Override
	public int countRegular(Regular regular) {
		return regularMapper.countRegular(regular);
	}

	@Override
	public List<Regular> selectRegularPagine(Regular regular) {
		return regularMapper.selectRegularPagine(regular);
	}

	@Override
	public int deleteRegular(String ids) {
		return regularMapper.deleteRegular(ids);
	}

	@Override
	public int editRegular(Regular regular) {
		return regularMapper.editRegular(regular);
	}

	@Override
	public Regular selectRegularByid(long id) {
		return regularMapper.selectRegularByid(id);
	}

	@Override
	public List<Regular> selectRegularBy(Regular regular) {
		return regularMapper.selectRegularBy(regular);
	}
}
